Robust system reliability via systolic manufacturing level chip test operating real time on microprocessors/ systems

ABSTRACT

A method and system are disclosed for running a manufacturing-level test program on an installed processor by interrupting processor execution of a non-test process. Periodic execution of the manufacturing-level test program allows the processor to continually self-test during normal function operation, in order to facilitate proper maintenance and function of the processor and a data processing system of which the processor is a part.

[0001] The present invention is related to the subject matter of thefollowing commonly assigned, copending United States patent applicationswhich are filed on even date herewith: Ser. No. ______ (Docket No.AUS920020161US1); Ser. No. ______ (Docket No. AUS920020163US1); Ser. No.______ (Docket No. AUS920020164US1); Ser. No. ______ (Docket No.AUS920020165US1); Ser. No. ______ (Docket No. AUS920020166US1); and Ser.No. ______ (Docket No. AUS920020167US1). The content of theabove-referenced applications are incorporated herein by reference intheir entireties.

BACKGROUND OF THE INVENTION

[0002] 1. Technical Field

[0003] The present invention relates in general to the field of dataprocessing, and, in particular, to an improved data processing systemand method for handling interrupts.

[0004] 2. Description of the Related Art

[0005] When executing a set of computer instructions, a processor isfrequently interrupted. This interruption may be caused by an interruptor an exception.

[0006] An interrupt is an asynchronous interruption event that is notassociated with the instruction that is executing when the interruptoccurs. That is, the interruption is often caused by some event outsidethe processor, such as an input from an input/output (I/O) device, acall for an operation from another processor, etc. Other interrupts maybe caused internally, for example, by the expiration of a timer thatcontrols task switching.

[0007] An exception is a synchronous event that arises directly from theexecution of the instruction that is executing when the exceptionoccurs. That is, an exception is an event from within the processor,such as an arithmetic overflow, a timed maintenance check, an internalperformance monitor, an on-board workload manager, etc. Typically,exceptions are far more frequent than interrupts.

[0008] The terms “interrupt” and “exception” are often interchanged. Forthe purposes of this disclosure, the term “interrupt” will be used todescribe both “interrupt” and “exception” interruptions.

[0009] As computer software and hardware have become more complex, thenumber and frequency of interrupts has increased dramatically. Theseinterrupts are necessary, in that they support the execution of multipleprocesses, handling of multiple peripherals, and performance monitoringof various components. While such features are beneficial, theconsumption of computing power by interrupts is increasing sodramatically that it is outstripping processing speed improvements ofthe processor(s). Thus, in many cases system performance is actuallydecreasing in real terms despite increasing processor clock frequencies.

[0010]FIG. 1 illustrates a conventional processor core 100. Withinprocessor core 100, a Level 1 Instruction cache (L1 I-cache) 102provides instructions to instruction sequencing logic 104, which issuesthe instructions to the appropriate execution units 108 for execution.Execution units 108, which may include a floating point execution unit,a fixed point execution unit, a branch execution unit, etc., include aload/store unit (LSU) 108 a. LSU 108 a executes load and storeinstructions, which load data from Level 1 Data cache (L1 D-cache) 112into architected register 110 and store data from architected register110 to L1 D-cache 112, respectively. Requests for data and instructionsthat miss L1 caches 102 and 112 can be resolved by accessing systemmemory 118 via memory bus 116.

[0011] As noted above, processor core 100 is subject to interrupts froma number of sources represented by external interrupt lines 114. When aninterrupt signal is received by processor core 100 (e.g., via one of theinterrupt lines 114), execution of current process(es) are suspended andthe interrupt is handled by interrupt-specific software known as aninterrupt handler. Among other activities, the interrupt handler savesand restores the architected state of the process executing at the timeof the interrupt through the execution of store and load instructions byLSU 108 a. This use of LSU 108 a to transfer the architected state toand from system memory 118 blocks execution of other memory accessinstructions by the interrupt handler, (or another process in the caseof a superscalar computer) until the state transfer is complete.Consequently, saving and subsequently restoring the architected statesof a process through the execution units of the processor causes a delayin execution of both the interrupted process as well as the interrupthandler. This delay results in a degradation of the overall performanceof the processor. Thus, the present invention recognizes that there is aneed for a method and system that minimize the processing delay incurredby saving and restoring architected states, particularly in response tointerrupt.

SUMMARY OF THE INVENTION

[0012] The present invention is directed to methods and systems forimproving self testing of a processor in a data processing system.

[0013] When an interrupt signal is received at the processor, a hardarchitected state of a currently executing process is loaded into one ormore dedicated shadow registers. The hard architected state includesinformation within the processor that is essential for execution of theinterrupted process. A beneficial method of further saving this hardarchitected state includes the use of a high-bandwidth bus to directlytransfer the hard architected state from the shadow register(s) to asystem memory, without using (and thus tying up) the normal load/storepathway and execution units of the processor. After the hard architectedstate has been loaded into the shadow register(s), the interrupt handlerimmediately begins to run. The soft state of the process, includingcache contents, is also at least partially saved to system memory. Toaccelerate the saving of the soft state, and to avoid data collisionswith the executing interrupt handler, the soft state is preferablytransferred from the processor using scan chain pathways, which in theprior art are normally used in the prior art only during manufacturertesting and are unused during normal operation.

[0014] Upon completion of the interrupt handler, the hard architectedstate and soft state are restored for an interrupted process, which isable to run immediately upon loading of the hard architected state.

[0015] To afford access to other processors and other partitionspossibly running different operating systems, both the hard and softstates may be stored in a reserved area of system memory that isaccessible to any processor and/or partition.

[0016] Further, the present invention discloses a method and system forrunning a manufacturing-level test program on an installed processor byinterrupting processor execution of a non-test process. Periodicexecution of the manufacturing-level test program allows the processorto continually self-test during normal function operation, in order tofacilitate proper maintenance and function of the processor and a dataprocessing system of which the processor is a part.

[0017] The above, as well as additional objectives, features, andadvantages of the present invention will become apparent in thefollowing detailed written description.

BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The novel features believed characteristic of the invention areset forth in the appended claims. The invention itself, however, as wellas a preferred mode of use, further objects and advantages thereof, willbest be understood by reference to the following detailed description ofan illustrative embodiment when read in conjunction with theaccompanying drawings, wherein:

[0019]FIG. 1 depicts a block diagram of a conventional computer systemthat employs a prior art method for saving the architected state of theprocessor using a load/store unit;

[0020]FIG. 2 illustrates a block diagram of an exemplary embodiment of adata processing system in accordance with the present invention;

[0021]FIGS. 3a and 3 b depict additional detail of a processing unitillustrated in FIG. 2;

[0022]FIG. 4 illustrates a layer diagram of an exemplary softwareconfiguration in accordance with the present invention;

[0023]FIGS. 5a and 5 b together form a flowchart of an exemplaryinterrupt handling process in accordance with the present invention;

[0024]FIGS. 6a and 6 b are flowcharts showing further detail of the stepshown in FIG. 5a for saving a hard architected state and soft state inaccordance with the present invention;

[0025]FIG. 7 depicts scan chain pathways used by the present inventionto communicate at least the soft state of a process to memory;

[0026]FIGS. 8a-8 c illustrate additional detail of a flash ROM depictedin FIG. 2 used in accordance with the present invention to store atleast First Level Interrupt Handlers (FLIHs), Second Level InterruptHandlers (SLIHs) and manufacturing-level test instructions;

[0027]FIG. 9 is a flow-chart describing jumping to a predicted SLIH uponreceipt of an interruption by a processor in accordance with the presentinvention;

[0028]FIG. 10 depicts the logical and communicative relationship betweenstored hard architected states, stored soft states, memory partitionsand processors;

[0029]FIG. 11 illustrates an exemplary data structure for storing softstate in memory; and

[0030]FIG. 12 is a flowchart of an exemplary method for testing aprocessor through execution of a manufacturing level test program duringnormal operation of a computer system.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0031] With reference now to FIG. 2, there is depicted a high levelblock diagram of an exemplary embodiment of a multiprocessor (MP) dataprocessing system 201. While MP data processing system 201 is depictedas a symmetrical multiprocessor (SMP), the present invention may beutilized with any MP data processing system known to those skilled inthe art of computer architecture, including but not limited to anon-uniform memory access (NUMA) MP or a Cache Only Memory Architecture(COMA) MP.

[0032] In accordance with the present invention, MP data processingsystem 201 includes a plurality of processing units 200, depicted asprocessing units 200 a to 200 n, that are coupled for communication byan interconnect 222. In a preferred embodiment, it is understood thateach processing unit 200, including processing unit 200 a and processingunit 200 n, in MP data processing system 201 is architecturally similaror the same. Processing unit 200 a is a single integrated circuitsuperscalar processor, which, as discussed further below, includesvarious execution units, registers, buffers, memories, and otherfunctional units that are all formed by integrated circuitry. In MP dataprocessing system 201, each processing unit 200 is coupled by a highbandwidth private bus 116 to respective system memory 118, depicted assystem memory 118 a for processing unit 200 a and system memory 118 nfor processing unit 200 n.

[0033] Processing unit 200 a includes an instruction sequencing unit(ISU) 202, which includes logic for fetching, scheduling and issuinginstructions to be executed by execution unit (EU) 204. Details of ISU202 and EU 204 are given in exemplary form in FIG. 3.

[0034] Associated with EU 204 are “hard” state registers 206 containingthe information within processing unit 200 a that is essential forexecuting the currently executing process coupled to hard state register206 are next hard state registers 210, containing, containing the hardstate for the next process to be executed, for example, when the currentprocess terminates or is interrupted. Also associated with hard stateregisters 206 are shadow registers 208, which contain (or will contain)a copy of the contents of hard state registers 206 when the currentlyexecuting process terminates or is interrupted.

[0035] Each processing unit 200 further includes a cache hierarchy 212,which may include multiple levels of cache memory. An on-chip storage ofinstructions and data loaded from system memories 118 may beaccomplished by, for example, cache hierarchy 212, which may comprise aLevel one Instruction cache (L1 I-cache) 18, a Level one Data cache (L1D-cache) 20, and a unified Level two cache (L2 cache) 16 as shown inFIG. 3. Cache hierarchy 212 is coupled to an on-chip integrated memorycontroller (IMC) 220 for system memory 118 via cache data path 218, andin accordance with at least one embodiment, scan chain pathway 214. Asscan chain pathway 214 is a serial pathway, serial-to-parallel interface216 is coupled between scan chain pathway 214 and IMC 220. The functionsof the depicted components of processing unit 200 a are detailed below.

[0036] Reference is now made to FIG. 3a, which shows additional detailfor processing unit 200. Processing unit 200 includes an on-chipmulti-level cache hierarchy including a unified level two (L2) cache 16and bifurcated level one (L1) instruction (I) and data (D) caches 18 and20, respectively. As is well-known to those skilled in the art, caches16, 18 and 20 provide low latency access to cache lines corresponding tomemory locations in system memories 118.

[0037] Instructions are fetched for processing from L1 I-cache 18 inresponse to the effective address (EA) residing in instruction fetchaddress register (IFAR) 30. During each cycle, a new instruction fetchaddress may be loaded into IFAR 30 from one of three sources: branchprediction unit (BPU) 36, which provides speculative target path andsequential addresses resulting from the prediction of conditional branchinstructions, global completion table (GCT) 38, which provides flush andinterrupt addresses, and branch execution unit (BEU) 92, which providesnon-speculative addresses resulting from the resolution of predictedconditional branch instructions. Associated with BPU 36 is a branchhistory table (BHT) 35, in which are recorded the resolutions ofconditional branch instructions to aid in the prediction of futurebranch instructions.

[0038] An effective address (EA), such as the instruction fetch addresswithin IFAR 30, is the address of data or an instruction generated by aprocessor. The EA specifies a segment register and offset informationwithin the segment. To access data (including instructions) in memory,the EA is converted to a real address (RA), through one or more levelsof translation, associated with the physical location where the data orinstructions are stored.

[0039] Within processing unit 200, effective-to-real address translationis performed by memory management units (MMUs) and associated addresstranslation facilities. Preferably, a separate MMU is provided forinstruction accesses and data accesses. In FIG. 3a, a single MMU 112 isillustrated, for purposes of clarity, showing connections only to ISU202. However, it is understood by those skilled in the art that MMU 112also preferably includes connections (not shown) to load/store units(LSUs) 96 and 98 and other components necessary for managing memoryaccesses. MMU 112 includes data translation lookaside buffer (DTLB) 113and instruction translation lookaside buffer (ITLB) 115. Each TLBcontains recently referenced page table entries, which are accessed totranslate EAs to RAs for data (DTLB 113) or instructions (ITLB 115).Recently referenced EA-to-RA translations from ITLB 115 are cached inEOP effective-to-real address table (ERAT) 32.

[0040] If hit/miss logic 22 determines, after translation of the EAcontained in IFAR 30 by ERAT 32 and lookup of the real address (RA) inI-cache directory 34, that the cache line of instructions correspondingto the EA in IFAR 30 does not reside in L1 I-cache 18, then hit/misslogic 22 provides the RA to L2 cache 16 as a request address via I-cacherequest bus 24. Such request addresses may also be generated by prefetchlogic within L2 cache 16 based upon recent access patterns. In responseto a request address, L2 cache 16 outputs a cache line of instructions,which are loaded into prefetch buffer (PB) 28 and L1 I-cache 18 viaI-cache reload bus 26, possibly after passing through optional predecodelogic 144.

[0041] Once the cache line specified by the EA in IFAR 30 resides in L1cache 18, L1 I-cache 18 outputs the cache line to both branch predictionunit (BPU) 36 and to instruction fetch buffer (IFB) 40. BPU 36 scans thecache line of instructions for branch instructions and predicts theoutcome of conditional branch instructions, if any. Following a branchprediction, BPU 36 furnishes a speculative instruction fetch address toIFAR 30, as discussed above, and passes the prediction to branchinstruction queue 64 so that the accuracy of the prediction can bedetermined when the conditional branch instruction is subsequentlyresolved by branch execution unit 92.

[0042] IFB 40 temporarily buffers the cache line of instructionsreceived from L1 I-cache 18 until the cache line of instructions can betranslated by instruction translation unit (ITU) 42. In the illustratedembodiment of processing unit 200, ITU 42 translates instructions fromuser instruction set architecture (UISA) instructions into a possiblydifferent number of internal ISA (IISA) instructions that are directlyexecutable by the execution units of processing unit 200. Suchtranslation may be performed, for example, by reference to microcodestored in a read-only memory (ROM) template. In at least someembodiments, the UISA-to-IISA translation results in a different numberof IISA instructions than UISA instructions and/or IISA instructions ofdifferent lengths than corresponding UISA instructions. The resultantIISA instructions are then assigned by global completion table 38 to aninstruction group, the members of which are permitted to be dispatchedand executed out-of-order with respect to one another. Global completiontable 38 tracks each instruction group for which execution has yet to becompleted by at least one associated EA, which is preferably the EA ofthe oldest instruction in the instruction group.

[0043] Following UISA-to-IISA instruction translation, instructions aredispatched to one of latches 44, 46, 48 and 50, possibly out-of-order,based upon instruction type. That is, branch instructions and othercondition register (CR) modifying instructions are dispatched to latch44, fixed-point and load-store instructions are dispatched to either oflatches 46 and 48, and floating-point instructions are dispatched tolatch 50. Each instruction requiring a rename register for temporarilystoring execution results is then assigned one or more rename registersby the appropriate one of CR mapper 52, link and count (LC) registermapper 54, exception register (XER) mapper 56, general-purpose register(GPR) mapper 58, and floating-point register (FPR) mapper 60.

[0044] The dispatched instructions are then temporarily placed in anappropriate one of CR issue queue (CRIQ) 62, branch issue queue (BIQ)64, fixed-point issue queues (FXIQs) 66 and 68, and floating-point issuequeues (FPIQS) 70 and 72. From issue queues 62, 64, 66, 68, 70 and 72,instructions can be issued opportunistically to the execution units ofprocessing unit 10 for execution as long as data dependencies andantidependencies are observed. The instructions, however, are maintainedin issue queues 62-72 until execution of the instructions is completeand the result data, if any, are written back, in case any of theinstructions needs to be reissued.

[0045] As illustrated, the execution units of processing unit 204include a CR unit (CRU) 90 for executing CR-modifying instructions, abranch execution unit (BEU) 92 for executing branch instructions, twofixed-point units (FXUs) 94 and 100 for executing fixed-pointinstructions, two load-store units (LSUs) 96 and 98 for executing loadand store instructions, and two floating-point units (FPUs) 102 and 104for executing floating-point instructions. Each of execution units90-104 is preferably implemented as an execution pipeline having anumber of pipeline stages.

[0046] During execution within one of execution units 90-104, aninstruction receives operands, if any, from one or more architectedand/or rename registers within a register file coupled to the executionunit. When executing CR-modifying or CR-dependent instructions, CRU 90and BEU 92 access the CR register file 80, which in a preferredembodiment contains a CR and a number of CR rename registers that eachcomprise a number of distinct fields formed of one or more bits. Amongthese fields are LT, GT, and EQ fields that respectively indicate if avalue (typically the result or operand of an instruction) is less thanzero, greater than zero, or equal to zero. Link and count register (LCR)register file 82 contains a count register (CTR), a link register (LR)and rename registers of each, by which BEU 92 may also resolveconditional branches to obtain a path address. General-purpose registerfiles (GPRs) 84 and 86, which are synchronized, duplicate registerfiles, store fixed-point and integer values accessed and produced byFXUs 94 and 100 and LSUs 96 and 98. Floating-point register file (FPR)88, which like GPRs 84 and 86 may also be implemented as duplicate setsof synchronized registers, contains floating-point values that resultfrom the execution of floating-point instructions by FPUs 102 and 104and floating-point load instructions by LSUs 96 and 98.

[0047] After an execution unit finishes execution of an instruction, theexecution notifies GCT 38, which schedules completion of instructions inprogram order. To complete an instruction executed by one of CRU 90,FXUs 94 and 100 or FPUs 102 and 104, GCT 38 signals the execution unit,which writes back the result data, if any, from the assigned renameregister(s) to one or more architected registers within the appropriateregister file. The instruction is then removed from the issue queue, andonce all instructions within its instruction group have completed, isremoved from GCT 38. Other types of instructions, however, are completeddifferently.

[0048] When BEU 92 resolves a conditional branch instruction anddetermines the path address of the execution path that should be taken,the path address is compared against the speculative path addresspredicted by BPU 36. If the path addresses match, no further processingis required. If, however, the calculated path address does not match thepredicted path address, BEU 92 supplies the correct path address to IFAR30. In either event, the branch instruction can then be removed from BIQ64, and when all other instructions within the same instruction grouphave completed, from GCT 38.

[0049] Following execution of a load instruction, the effective addresscomputed by executing the load instruction is translated to a realaddress by a data ERAT (not illustrated) and then provided to L1 D-cache20 as a request address. At this point, the load instruction is removedfrom FXIQ 66 or 68 and placed in load reorder queue (LRQ) 114 until theindicated load is performed. If the request address misses in L1 D-cache20, the request address is placed in load miss queue (LMQ) 116, fromwhich the requested data is retrieved from L2 cache 16, and failingthat, from another processing unit 200 or from system memory 118 (shownin FIG. 2). LRQ 114 snoops exclusive access requests (e.g.,read-with-intent-to-modify), flushes or kills on interconnect 222 fabric(shown in FIG. 2) against loads in flight, and if a hit occurs, cancelsand reissues the load instruction. Store instructions are similarlycompleted utilizing a store queue (STQ) 110 into which effectiveaddresses for stores are loaded following execution of the storeinstructions. From STQ 110, data can be stored into either or both of L1D-cache 20 and L2 cache 16.

[0050] Processor States

[0051] The state of a processor includes stored data, instructions andhardware states at a particular time, and are herein defined as eitherbeing “hard” or “soft.” The “hard” state is defined as the informationwithin a processor that is architecturally required for a processor toexecute a process from its present point in the process. The “soft”state, by contrast, is defined as information within a processor thatwould improve efficiency of execution of a process, but is not requiredto achieve an architecturally correct result. In processing unit 200 ofFIG. 3a, the hard state includes the contents of user-level registers,such as CRR 80, LCR 82, GPRs 84 and 86, FPR 88, as well as supervisorlevel registers 51. The soft state of processing unit 200 includes both“performance-critical” information, such as the contents of L-1 I-cache18, L-l D-cache 20, address translation information such as DTLB 113 andITLB 115, and less critical information, such as BHT 35 and all or partof the content of L2 cache 16.

[0052] Registers

[0053] In the description above, register files of processing unit 200such as GPR 86, FPR 88, CRR 80 and LCR 82 are generally defined as“user-level registers,” in that these registers can be accessed by allsoftware with either user or supervisor privileges. Supervisor levelregisters 51 include those registers that are used typically by anoperating system, typically in the operating system kernel, for suchoperations as memory management, configuration and exception handling.As such, access to supervisor level registers 51 is generally restrictedto only a few processes with sufficient access permission (i.e.,supervisor level processes).

[0054] As depicted in FIG. 3b, supervisor level registers 51 generallyinclude configuration registers 302, memory management registers 308,exception handling registers 314, and miscellaneous registers 322, whichare described in more detail below.

[0055] Configuration registers 302 include a machine state register(MSR) 306 and a processor version register (PVR) 304. MSR 306 definesthe state of the processor. That is, MSR 306 identifies whereinstruction execution should resume after an instruction interrupt(exception) is handled. PVR 304 identifies the specific type (version)of processing unit 200.

[0056] Memory management registers 308 include block-address translation(BAT) registers 310. BAT registers 310 are software-controlled arraysthat store available block-address translations on-chip. Preferably,there are separate instruction and data BAT registers, shown as IBAT 309and DBAT 311. Memory management registers also include segment registers(SR) 312, which are used to translate EAs to virtual addresses (VAs)when BAT translation fails.

[0057] Exception handling registers 314 include a data address register(DAR) 316, special purpose registers (SPRs) 318, and machine statussave/restore (SSR) registers 320. The DAR 316 contains the effectiveaddress generated by a memory access instruction if the access causes anexception, such as an alignment exception. SPRs are used for specialpurposes defined by the operating system, for example, to identify anarea of memory reserved for use by a first-level exception handler(FLIH). This memory area is preferably unique for each processor in thesystem. An SPR 318 may be used as a scratch register by the FLIH to savethe content of a general purpose register (GPR), which can be loadedfrom SPR 318 and used as a base register to save other GPRs to memory.SSR registers 320 save machine status on exceptions (interrupts) andrestore machine status when a return from interrupt instruction isexecuted.

[0058] Miscellaneous registers 322 include a time base (TB) register 324for maintaining the time of day, a decrementer register (DEC) 326 fordecrementing counting, and a data address breakpoint register (DABR) 328to cause a breakpoint to occur if a specified data address isencountered. Further, miscellaneous registers 322 include a time basedinterrupt register (TBIR) 330 to initiate an interrupt after apre-determined period of time. Such time based interrupts may be usedwith periodic maintenance routines to be run on processing unit 200.

[0059] Software Organization

[0060] In a MP data processing system such as MP data processing system201 of FIG. 2, multiple applications can run simultaneously, possiblyunder different operating systems. FIG. 4 depicts a layer diagram of anexemplary software configuration of MP data processing system 201 inaccordance with the present invention.

[0061] As illustrated, the software configuration includes a hypervisor402, which is supervisory software that allocates the resources of MPdata processing system 201 into multiple partitions, and thencoordinates execution of multiple (possibly different) operating systemswithin the multiple partitions. For example, hypervisor 402 may allocateprocessing unit 200 a, a first region of system memory 118 a, and otherresources to a first partition in which operating system 404 a operates.Similarly, hypervisor 402 may allocate processing unit 200 n, a secondregion of system memory 118 n, and other resources to a second partitionin which operating system 404 n operates.

[0062] Running under the control of an operating system 404 may bemultiple applications 406, such as a word processor, a spreadsheet, abrowser, etc. For example, applications 406 a through 406 x all rununder the control of operating system 404 a.

[0063] Each operating system 404 and application 406 typically comprisemultiple processes. For example, application 406 a is shown havingmultiple processes 408 a through 408 z. Each processing unit 200 iscapable of independently executing a process, assuming that theprocessing unit 200 has the requisite instructions, data and stateinformation for the process.

[0064] Interrupt Handling

[0065] Referring now to FIGS. 5a and 5 b, there is depicted a flowchartof an exemplary method by which a processing unit, such as processingunit 200, handles an interrupt in accordance with the present invention.As shown at block 502, an interrupt is received by the processor. Thisinterrupt maybe an exception (e.g., overflow), an external interrupt(e.g., from an I/O device) or an internal interrupt.

[0066] Upon receiving the interrupt, the hard architected state (block504) and soft state (block 505) of the currently running process aresaved. Details of preferred processes for saving and managing hard andsoft states in accordance with the present invention are described belowwith reference to FIG. 6a (hard) and FIG. 6b (soft). After the hardstate of the process is saved to memory, at least a First LevelInterrupt Handler (FLIH) and Second Level Interrupt Handler (SLIH) areexecuted to service the interrupt.

[0067] The FLIH is a routine that receives control of the processor as aresult of an interrupt. Upon notification of an interrupt, the FLIHdetermines the cause of the interrupt by reading an interrupt controllerfile. Preferably, this determination is made through the use of a vectorregister. That is, the FLIH reads a table to match an interrupt with anexception vector address that handles the initial processing of theinterrupt.

[0068] The SLIH is a interrupt-dependent routine that handles theprocessing of an interrupt from a specific interrupt source. That is,the FLIH calls the SLIH, which handles the device interrupt, but is notthe device driver itself.

[0069] In FIG. 5a, steps shown within circle 506 are performed by theFLIH. As illustrated at block 508, the interrupt is uniquely identified,as described above, preferably using a vector register. This interruptidentification then causes the processor to jump to a particular addressin memory, depending on which interrupt is received.

[0070] As is well understood by those skilled in the art, any SLIH mayestablish a communication procedure with an input/output (I/O) device orwith another processor (external interrupt), or may execute a set ofinstructions under the control of the operating system or hypervisorcontrolling the interrupted processor. For example, a first interruptmay cause the processor to jump to vector address 1, which results inthe execution of SLIH A, as shown in blocks 510 and 516. As shown, SLIHA completes the handling of the interrupt without calling any additionalsoftware routine. Similarly, as illustrated in blocks 512, 520 and 526,a branch to vector address 3 results in the execution of exemplary SLIHC, which then executes one or more instructions belonging to theoperating system 404 or hypervisor 402 (both shown in FIG. 4) to servicethe interrupt. Alternatively, if the interrupt instructs the processorto jump to vector address 2, then exemplary SLIH B is executed, as shownin blocks 514 and 518. SLIH B then calls (block 524) a device driver forthe device that issued the interrupt.

[0071] Following any of block 516, 524 or 526, the process proceedsthrough page connector “A” to block 528 of FIG. 5b. Once the interrupthas been serviced, then the SLIH and FLIH are resolved andre-established to reflect the execution and completion of the interrupt,as shown in blocks 528 and 530. Thereafter, a next process is loaded andrun, as described in blocks 532-536. The interrupt handling process thenterminates.

[0072] A choice is made, typically by the operating system of theprocessor or by the hypervisor of the MP computer system of which theprocessor is a part, as to which process is run next (block 532) and onwhich processor (block 534) (if in a MP computer system). The selectedprocess may be the process that was interrupted on the presentprocessor, or it may be another process that is new or was interruptedwhile executing on the present processor or on another processor.

[0073] As illustrated in block 536, once the process and processor areselected, that chosen processor is initialized with the state of thenext process to be run using the next hard state register 210 shown inFIG. 2. Next hard state register 210 contains the hard architected stateof the next “hottest” process. Usually, this next hottest process is aprocess that was previously interrupted, and is now being resumed.Rarely, the next hottest process may be a new process that had not beenpreviously interrupted.

[0074] The next hottest process is the process that is determined tohave the highest priority for execution. Priority may be based on howcritical a process is to the overall application, a need for a resultfrom the process, or any other reason for prioritization. As multipleprocesses are run, priorities of each process waiting to resume oftenchange. Thus, the hard architected states are dynamically assignedupdated priority levels. That is, at any given moment, next hard stateregister 210 contains hard architected state that is continuously anddynamically updated from system memory 118 to contain the next “hottest”process that needs to be run.

[0075] Saving Hard Architected State

[0076] In the prior art, the hard architected state is stored to systemmemory through the load/store unit of the processor core, which blocksexecution of the interrupt handler or another process for a number ofprocessor clock cycles. In the present invention, the step of saving ahard state as depicted in block 504 of FIG. 5a is accelerated accordingto the method illustrated in FIG. 6a, which is described with referenceto hardware schematically illustrated in FIG. 2.

[0077] Upon receipt of an interrupt, processing unit 200 suspendsexecution of a currently executing process, as illustrated in block 602.The hard architected state stored in hard state registers 206 is thencopied directly to shadow register 208, as illustrated in block 604.(Alternatively, shadow registers 208 already have a copy of the hardarchitected state through a process of continually updating shadowregisters 208 with the current hard architected state.) The shadow copyof the hard architected state, which is preferably non-executable whenviewed by the processing unit 200, is then stored to system memory 118under the control of IMC 220, as illustrated at block 606. The shadowcopy of the hard architected state is transferred to system memory 118via high bandwidth memory bus 116. Since storing the copy of the currenthard architected state into shadow register 208 takes only a few clockcycles at most, processing unit 200 is quickly able to begin the “realwork” of handling the interrupt or executing a next process.

[0078] The shadow copy of the hard architected state is preferablystored in a special memory area within system memory 118 that isreserved for hard architected states, as described below with respect toFIG. 10.

[0079] Saving Soft State

[0080] When an interrupt handler is executed by a conventionalprocessor, the soft state of the interrupted process is typicallypolluted. That is, execution of the interrupt handler software populatesthe processor's caches, address translation facilities, and historytables with data (including instructions) that are used by the interrupthandler. Thus, when the interrupted process resumes after the interruptis handled, the process will experience increased instruction and datacache misses, increased translation misses, and increased branchmispredictions. Such misses and mispredictions severely degrade processperformance until the information related to interrupt handling ispurged from the processor and the caches and other components storingthe process' soft state are repopulated with information relating to theprocess. The present invention therefore saves and restores at least aportion of a process' soft state in order to reduce the performancepenalty associated with interrupt handling.

[0081] With reference now to FIG. 6b and corresponding hardware depictedin FIGS. 2 and 3a, the entire contents of L1 I-cache 18 and L1 D-cache20 are saved to a dedicated region of system memory 118, as illustratedat block 610. Likewise, contents of BHT 35 (block 612), ITLB 115 andDTLB 113 (block 614), ERAT 32 (block 616), and L2 cache 16 (block 618)maybe saved to system memory 118.

[0082] Because L2 cache 16 may be quite large (e.g., several megabytesin size), storing all of L2 cache 16 maybe prohibitive in terms of bothits footprint in system memory and the time/bandwidth required totransfer the data. Therefore, in a preferred embodiment, only a subset(e.g., two) of the most recently used (MRU) sets are saved within eachcongruence class.

[0083] It should be understood that although FIG. 6b illustrates thesaving of each of a number of different components of the soft state ofa process, the number of these components that is saved and the order inwhich the components are saved can vary between implementation and canbe software programmable or controlled through hardware mode bits.

[0084] Thus, the present invention streams out soft states while theinterrupt handler routines (or next process) are being executed. Thisasynchronous operation (independent of execution of the interrupthandlers) may result in an intermingling of soft states (those of theinterrupted process and those of the interrupt handler). Nonetheless,such intermingling of data is acceptable because precise preservation ofthe soft state is not required for architected correctness and becauseimproved performance is achieved due to the shorter delay in executingthe interrupt handler.

[0085] Referring again to FIG. 2, soft states from L1 I-cache 18, L1D-cache 20, and L2 cache 16 are transmitted to IMC 220 via cache datapath 218, while other soft states such as BHT 35 are transmitted to IMC220 via analogous internal data paths (not shown). Alternatively oradditionally, in a preferred embodiment, at least some soft statecomponents are transmitted to IMC 220 via scan chain pathway 214.

[0086] Saving Soft States Via a Scan Chain Pathway

[0087] Because of their complexity, processors and other ICs typicallyinclude circuitry that facilitates testing of the IC. The test circuitryincludes a boundary scan chain as described in the Institute ofElectrical and Electronic Engineers (IEEE) Standard 1149.1-1990,“Standard Test Access Port and Boundary Scan Architecture,” which isherein incorporated by reference in its entirety. The boundary scanchain which is typically accessed through dedicated pins on a packagedintegrated circuit, provides a pathway for test data between componentsof an integrated circuit.

[0088] With reference now to FIG. 7, there is depicted a block inaccordance with the diagram of an integrated circuit 700 in accordancewith the present invention. Integrated circuit 700 is preferably aprocessor, such as processing unit of 200 of FIG. 2. Integrated circuit700 contains three logical components (logic) 702, 704 and 706, which,for purposes of explaining the present invention, comprise three of thememory elements that store the soft state of the process. For example,logic 702 may be L1 D-cache 20 shown in FIG. 3a, logic 704 may be ERAT32, and logic 706 may be a portion of L2 cache 16 as described above.

[0089] During manufacturer testing of integrated circuit 700, a signalis sent through the scan chains boundary cells 708, which are preferablyclock controlled latches. A signal output by scan chain boundary cell708 a provides a test input to logic 702, which then outputs a signal toscan chain boundary cells 708 b, which in turn sends the test signalthrough other logic (704 and 706) via other scan chain boundary cells708 until the signal reaches scan chain boundary 708 c. Thus, there is adomino effect, in which logic 702-706 pass the test only if the expectedoutput is received from scan chain boundary cell 708 c.

[0090] Historically, the boundary scan chain of an integrated circuit isunused after manufacture. The present invention, however, utilizes thedescribed test pathway as a pathway to transfer the soft architectedstate to IMC 220 of FIG. 2 in a manner that is non-blocking ofcache/register ports. That is, by using the scan chain test pathway, thesoft architected state can be streamed out of the caches/registers whilethe IH or next process is executing without blocking access to thecaches/registers by the next process or interrupt handler.

[0091] As scan chain 214 is a serial pathway, serial-to-parallel logic216, illustrated in FIG. 2, provides parallel data to ICM 220 for propertransmission of the soft state to system memory 118. In a preferredembodiment, serial-to-parallel logic 216 also includes logic for bothidentifying which data is from which register/cache. Such identificationmay be by any method known to those skilled in the art, includingidentification of leading identification tags on the serial data, etc.After converting the soft state data to parallel format, IMC 220 thentransmits the soft state to system memory 118 via high-bandwidth memorybus 222.

[0092] Note that these same scan chain pathways may be used further totransmit hard architected states such as contained in shadows register208 depicted in FIG. 2.

[0093] SLIH/FLIH FLASH ROM

[0094] In prior art systems, First Level Interrupt Handlers (FLIHs) andSecond Level Interrupt Handlers (SLIHs) are stored in system memory, andpopulate the cache memory hierarchy when called. Initially calling aFLIH or SLIH from system memory in a conventional system result in along access latency (to locate and load the FLIH/SLIH from system memoryafter a cache miss). Populating cache memory with FLIH/SLIH instructionsand data “pollutes” the cache with data and instructions that are notneeded by subsequent processes.

[0095] To reduce the access latency of FLIHs and SLIHs and to avoidcache pollution, processing unit 200 stores at least some FLIHs andSLIHs in a special on-chip memory (e.g., flash Read Only Memory (ROM)802), as depicted in FIGS. 3a and 8 a. FLIHs 804 and SLIHs 806 may beburned into flash ROM 802 at the time of manufacture, or may be burnedin after manufacture by flash programming techniques well known to thoseskilled in the art. When an interrupt is received by processing unit 200(depicted in FIG. 2), the FLIH/SLIH is directly accessed from flash ROM802 rather than from system memory 118 or cache hierarchy 212.

[0096] SLIH Prediction

[0097] Normally, when an interrupt occurs in processing unit 200, a FLIHis called, which then calls a SLIH, which completes the handling of theinterrupt. Which SLIH is called and how that SLIH executes varies, andis dependent on a variety of factors including parameters passed,conditions states, etc. For example, in FIG. 8b, calling FLIH 812results in the calling and execution of SLIH 814, which results inexecuting instructions located at point B.

[0098] Because program behavior can be repetitive, it is frequently thecase that an interrupt will occur multiple times, resulting in theexecution of the same FLIH and SLIH (e.g., FLIH 812 and SLIH 814).Consequently, the present invention recognizes that interrupt handlingfor subsequent occurrences of an interrupt may be accelerated bypredicting that the control graph of the interrupt handling process willbe repeated and by speculatively executing portions of the SLIH withoutfirst executing the FLIH.

[0099] To facilitate interrupt handling prediction, processing unit 200is equipped with an Interrupt Handler Prediction Table (IHPT) 808, shownin greater detail in FIG. 8c. IHPT 808 contains a list of the baseaddresses 816 (interrupt vectors) of multiple FLIHs. In association witheach FLIH address 816, IHPT 808 stores a respective set of one or moreSLIH addresses 818 that have previously been called by the associatedFLIH. When IHPT 808 is accessed with the base address for a specificFLIH, prediction logic 820 selects a SLIH address 818 associated withthe specified FLIH address 816 in IHPT 808 as the address of the SLIHthat will likely be called by the specified FLIH. Note that while thepredicted SLIH address illustrated may be the base address of SLIH 814as indicated in FIG. 8b, the address may also be an address of aninstruction within SLIH 814 subsequent to the starting point (e.g., atpoint B).

[0100] Prediction logic 820 uses an algorithm that predicts which SLIHwill be called by the specified FLIH. In a preferred embodiment, thisalgorithm picks a SLIH, associated with the specified FLIH, that hasbeen used most recently. In another preferred embodiment, this algorithmpicks a SLIH, associated with the specified FLIH, that has historicallybeen called most frequently. In either described preferred embodiment,the algorithm maybe run upon a request for the predicted SLIH, or thepredicted SLIH may be continuously updated and stored in IHPT 808.

[0101] It is significant to note that the present invention is differentfrom branch prediction methods known in the art. First, the methoddescribed above results in a jump to a specific interrupt handler, andis not based on a branch instruction address. That is, branch predictionmethods used in the prior art predict the outcome of a branch operation,while the present invention predicts a jump to a specific interrupthandler based on a (possibly) non-branch instruction. This leads to asecond difference, which is that a greater amount of code can be skippedby interrupt handler prediction as taught by the present invention ascompared to prior art branch prediction, because the present inventionallows bypassing any number of instructions (such as in the FLIH), whilea branch prediction permits bypassing only a limited number ofinstructions before the predicted branch due to inherent limitations inthe size of the instruction window that can be scanned by a conventionalbranch prediction mechanism. Third, interrupt handler prediction inaccordance with the present invention is not constrained to a binarydetermination as are the taken/not taken branch predictions known in theprior art. Thus, referring again to FIG. 8c, prediction logic 820 maychoose predicted SLIH address 822 from any number of historical SLIHaddresses 818, while a branch prediction scheme chooses among only asequential execution path and a branch path.

[0102] Reference is now made to FIG. 9, which illustrates a flowchart ofan exemplary method of predicting an interrupt handler in accordancewith the present invention. When an interrupt is received by a processor(block 902), concurrent execution by simultaneous multithreading (SMT)begins on both the FLIH called by the interrupt (block 904) as well as apredicted SLIH (block 906) indicated by IHPT 808 based upon priorexecution history.

[0103] In a preferred embodiment, jumping to the predicted SLIH (block906) may be performed in response to monitoring, upon receipt of aninterrupt, the called FLIH. For example, refer again to IHPT 808, shownin FIG. 8. When the interrupt is received, the FLIH is compared to FLIHaddresses 816 stored in IHPT 808. If a comparison of the stored FLIHaddresses 816 in IHPT 808 reveals the same FLIH address called by theinterrupt, then IHPT 808 provides the predicted SLIH address 822, andcode execution starting at the address of the predicted SLIH address 822immediately begins.

[0104] Subsequent comparison of the known correct SLIH and the predictedSLIH is preferably performed by storing the predicted SLIH address 822,that was called using IHPT 808, in a SLIH prediction register containingFLIH addresses with a prediction flag. In a preferred embodiment of thepresent invention, when a instruction known to call a SLIH from theFLIH, such as a “jump” instruction, is executed, the address called bythe jump is compared with address of the predicted SLIH address 822located in the prediction register (and identified as having beenpredicted and currently executing by the prediction flag). The predictedSLIH address 822 from the prediction register and the SLIH selected toby the executing FLIH are compared (block 910). If the correct SLIH waspredicted, then the predicted SLIH completes execution (block 914), thusaccelerating interrupt handling. If, however, the SLIH was mispredicted,then further execution of the predicted SLIH is cancelled, and thecorrect SLIH is execution instead (block 916).

[0105] State Management

[0106] Referring now to FIG. 10, there is depicted a conceptual diagramthat graphically illustrates the logical relationship between hard andsoft states stored in system memory and various processors and memorypartitions of an exemplary MP data processing system. As shown in FIG.10, all hard architected states and soft states are stored in a specialmemory region allocated by hypervisor 402 that is accessible byprocessors within any partition. That is, Processor A and Processor Bmay initially be configured by hypervisor 402 to function as an SMPwithin Partition X, while Processor C and Processor D are configured asan SMP within Partition Y. While executing, processors A-D may beinterrupted, causing each of processors A-D to store a respective one ofhard states A-D and soft states A-D to memory in the manner discussedabove. Unlike prior art systems that do not permit processors indifferent partitions to access the same memory space, any processor canaccess any of hard or soft states A-D to resume the associatedinterrupted process. For example, in addition to hard and soft states Cand D, which were created within its partition, Processor D can alsoaccess hard and soft states A and B. Thus, any process state can beaccessed by any partition or processor(s). Consequently, hypervisor 402has great freedom and flexibility in load balancing between partitions.

[0107] Soft State Cache Coherency

[0108] As discussed above, soft states of interrupted processes mayinclude the contents of cache memory, such as L1 I-cache 18, L2 D-cache20 and L2 cache 16 illustrated in FIG. 3a. While these soft states arestored in system memory, as described above with reference to FIG. 6b,it is likely that at least some of the data comprising the soft stateswill become stale due to data modifications made by other processes. Thepresent invention therefore provides a mechanism to keep the soft statesstored in system memory cache coherent.

[0109] As illustrated in FIG. 11, the soft states stored in systemmemory 118 can be conceptualized as being stored in “virtual caches”.For example, the soft state of L2 cache 16 is in L2 virtual cache 1102.L2 virtual cache comprises an address portion including the tag 1104 andindex 1106 of each cache line of data 1110 saved from L2 cache 16.Similarly, L1 virtual I-cache 1112 comprises an address portionincluding the tag 1114 and index 1116, of instructions 1120 saved fromL1 I-cache 18, and L1 virtual D-cache 1122 comprises an address portion,including a tag 1124 and index 1126 of each cache line of data 1130saved from L1 D-cache 20. Each of these “virtual caches” is managed viainterconnect 222 by integrated memory controller (IMC) 220 to maintaincoherency.

[0110] IMC 220 snoops each operation on system interconnect 222.Whenever an operation is snooped that may require the invalidation of acache line, IMC 220 snoops the operation against virtual cachedirectories 1132. If a snoop hit is detected, IMC 220 invalidates thevirtual cache line in system memory 118 by updating the appropriatevirtual cache directory. Although it is possible to require exactaddress matches for snoop invalidates (i.e., matches of both tag andindex), implementing a precise address match would require a largeamount of circuitry in IMC 220 (particularly for 64-bit and largeraddresses). Accordingly, in a preferred embodiment, snoop invalidationsare imprecise, and all virtual cache lines having selected mostsignificant bits (MSBs) matching the snooped address are invalidated.Which MSBs are used to determine which cache lines are invalidated inthe virtual cache memories is implementation-specific and may besoftware-controllable or hardware controllable via mode bits. Thus,addresses may be snooped against the tag or only a portion of the tag(such as the 10 most significant bits). Such an invalidation scheme ofthe virtual cache memory has an admitted disadvantage of invalidatingcache lines that still contain valid data, but this disadvantage isoutweighed by the performance advantage achieved by providing a veryfast method of maintaining coherency of virtual cache lines.

[0111] Manufacturing Level Test

[0112] During manufacturing, integrated circuits are subjected to abattery of tests under a variety of operating conditions. One such testis a data test in which the internal gates of the integrated circuit areall tested with a test data stream using the IEEE 1149.1 test scan chaindescribed above. In the prior art, after installation of the integratedcircuit in an operating environment such test programs are not runagain, in part because it is impractical in most operating environmentsto connect the integrated circuit to a test fixture to perform the testand because such testing prevents use of the integrated circuit for itsintended purpose. For example, in processor 100 the hard architectedstate must be saved to and restored from system memory via theload/store execution path, preventing the accomplishment of substantivework during testing and introducing significant latency.

[0113] Using the hard architected state storage method described above,however, a processor can run a manufacturing-level test programroutinely while the processor is installed in a normal operatingenvironment (e.g., a computer system) since the time to save and restorethe hard architected state is very short, preferably just a few clockcycles.

[0114] With reference now to FIG. 12, there is depicted a flow-chart ofan exemplary method of manufacturing-level test program in accordancewith the present invention. Test programs are preferably runperiodically. Thus, as depicted in blocks 1202 and 1204, upon passage ofa predetermined amount of time, an interrupt is initiated in theprocessor (block 1206). As with any interrupt using the presentinvention, when the test program begins running and issues theinterrupt, the hard architected state of the currently executing processis immediately saved (generally within 2-3 clock cycles), using thepreferred method described above for saving hard architected states, asdepicted in block 1208. Concurrently, at least a portion of the softstate for the currently executing process is saved (block 1210),preferably in a manner described above in FIG. 6b.

[0115] The hard architected state for the manufacturing test program isoptionally loaded into the processor, as described in block 1212. In apreferred embodiment of the present invention, the manufacturing-leveltest program is loaded from a manufacturing-level test program(s) 810loaded from flash ROM 802, depicted in FIG. 8a. Manufacturing-level testprogram(s) 810 may be burned into flash ROM 802 when processing unit 200is first manufactured, or the manufacturing-level test program(s) 810may be burned in subsequently. If multiple manufacturing-level testprograms are stored in flash ROM 802, then one of themanufacturing-level test programs is selected for execution. In apreferred embodiment of with the present invention, themanufacturing-level test program is run each time a timer interrupt isexecuted, as described above for blocks 1202 and 1204.

[0116] As soon as the hard architected state is loaded into theprocessor, the manufacturing level test program begins to run (block1214), preferably using the IEEE 1149.1 test scan chain described above.Concurrently, the soft architected states flow into the processor (block1216), preferably in the manner described above for soft state updating(FIG. 6b). Upon completion of the execution of the manufacturing leveltest program, the interrupt is complete, and a next process is executedby loading the hard architected state and soft states for that process(block 1218).

[0117] As the loading of the hard architected states require only a fewclock cycles, the manufacturing level test program can be run as oftenas the designer wishes, within the constraints of the time required toexecute the test program itself. The execution of the manufacturing testprogram can be initiated by the user, the operating system, or thehypervisor.

[0118] Thus, the present invention provides a method and system toaddress, among other matters, the problem of latency associated withinterrupts. For example, in the prior art, if the interrupt handler is aprocess that is infrequently called, then typically there is a longlatency as lower cache levels, and even system memory, are searched forthe appropriate interrupt handler. When the interrupt handler isexecuting, it populates the processor's cache hierarchy withinstructions/data needed to handle the interrupt, thus “polluting” thecache hierarchy when the interrupted process is restored for execution.The present invention solves' these problems utilizing the inventiveprocesses described herein.

[0119] Although aspects of the present invention have been describedwith respect to a computer processor and software, it should beunderstood that at least some aspects of the present invention mayalternatively be implemented as a program product for use with a datastorage system or computer system. Programs defining functions of thepresent invention can be delivered to a data storage system or computersystem via a variety of signal-bearing media, which include, withoutlimitation, non-writable storage media (e.g. CD-ROM), writable storagemedia (e.g. a floppy diskette, hard disk drive, read/write CD-ROM,optical media), and communication media, such as computer and telephonenetworks including Ethernet. It should be understood, therefore, thatsuch signal-bearing media, when carrying or encoding computer readableinstructions that direct method functions of the present invention,represent alternative embodiments of the present invention. Further, itis understood that the present invention may be implemented by a systemhaving means in the form of hardware, software, or a combination ofsoftware and hardware as described herein or their equivalent.

[0120] While the invention has been particularly shown and describedwith reference to a preferred embodiment, it will be understood by thoseskilled in the art that various changes in form and detail may be madetherein without departing from the spirit and scope of the invention.

What is claimed is:
 1. A method of testing a processor installed withina data processing system, the method comprising: executing a firstprocess on the processor while the processor is in a non-test mode ofoperation; interrupting execution of the first process; executing amanufacturing level test program that tests the processor; and executinga second process on the processor in the non-test mode.
 2. The method ofclaim 1, further comprising: in response to the interrupting executionof the first process, saving a hard architected state of the firstprocess in a memory.
 3. The method of claim 2, further comprising:saving a soft state of the first process.
 4. The method of claim 1,wherein the interrupting comprises interrupting execution of the firstprocess in response to an expiration of a pre-determined time period. 5.The method of claim 4, wherein the pre-determined time period ismeasured from a last execution of the manufacturing level test program.6. The method of claim 1, wherein the executing the manufacturing leveltest program comprises executing the manufacturing level test programfrom a read only memory (ROM) within the processor.
 7. A processor thatsupports self-testing while installed in a data processing system, theprocessor comprising: at least one execution unit; an instructionsequencing unit coupled to the at least one execution unit; and aprogrammable memory, within the processor, coupled to the instructionsequencing unit and containing a manufacturing-level test program,wherein the processor executes the manufacturing-level test programbetween execution of non-test processes.
 8. A data processing systemcomprising: a plurality of processors including a processor inaccordance with claim 7; a volatile memory hierarchy coupled to theplurality of processors; and an interconnect coupling the plurality ofprocessors.
 9. A processor that supports self-testing while installed ina data processing system, the processor comprising: at least oneexecution unit; an instruction sequencing unit coupled to the at leastone execution unit; and a programmable memory, within the processor,coupled to the instruction sequencing unit and containing amanufacturing-level test program, wherein the processor executes themanufacturing-level test program upon an interrupt of a non-test processexecuting on the processor.
 10. A data processing system comprising: aplurality of processors including a processor in accordance with claim9; a volatile memory hierarchy coupled to the plurality of processors;and an interconnect coupling the plurality of processors.
 11. Aprocessor that supports self-testing while installed in a dataprocessing system, the processor comprising: means for executing a firstprocess on the processor in a non-test mode; means for interruptingexecution of the first process; means for executing a manufacturinglevel test program; and means for executing a second process on theprocessor in the non-test mode.
 12. The processor of claim 11, furthercomprising: means, responsive to the interrupting execution of the firstprocess, for saving a hard architected state of the first process in amemory.
 13. The processor of claim 12, further comprising: means forsaving a soft state of the first process.
 14. The processor of claim 11,further comprising a timer for measuring a pre-determined time periodbefore interrupting execution of the first process.
 15. The processor ofclaim 14, wherein the pre-determined time period is measured from a lastexecution of the manufacturing level test program.
 16. The processor ofclaim 11, further comprising a read only memory (ROM) storing themanufacturing-level test program, wherein the means for executing themanufacturing level test program comprises means for executing themanufacturing level test program from the read only memory (ROM) withinthe processor.